import { createRouter, createWebHashHistory } from 'vue-router';

import Login from '../views/login/index.vue'
import Index from '../views/index.vue'
import Test from '../views/test/index.vue'
import Analysis from '../views/analysis/index.vue'
import Pinia from '../views/pinia/index.vue'


const routes = [
  { path: '/', component: Index },
  { path: '/login', component: Login },
  { path: '/test', component: Test },
  { path: '/analysis', component: Analysis },
  { path: '/pinia', component: Pinia },
]


const router = createRouter({
  // 4. 内部提供了 history 模式的实现。为了简单起见，我们在这里使用 hash 模式。
  history: createWebHashHistory(),
  routes, // `routes: routes` 的缩写
})

export default router
